// pages/storelist/index.js
Page({

    /**
     * 页面的初始数据
     */
    data: {
		slideshow:false,
		intelligentshow:false,
		dropmenushow:false,
		tabindex:0,
		index1:0,
		toptab: ["丽人/美发","教育培训","运动健身","休闲娱乐"],
		intelligent:["智能排序","距离最近","好评优先","消费最低"],
        storelist: [{
                img: "/images/store1.png",
                name: "前卫美发金山旗舰店",
                sellnum: "188",
                commentnum: "54",
                price: "99",
                distance: "3.1km"
            },
            {
                img: "/images/store1.png",
                name: "前卫美发金山旗舰店",
                sellnum: "188",
                commentnum: "54",
                price: "99",
                distance: "3.1km"
            },
            {
                img: "/images/store1.png",
                name: "前卫美发金山旗舰店",
                sellnum: "188",
                commentnum: "54",
                price: "99",
                distance: "3.1km"
            },
            {
                img: "/images/store1.png",
                name: "前卫美发金山旗舰店",
                sellnum: "188",
                commentnum: "54",
                price: "99",
                distance: "3.1km"
            },
            {
                img: "/images/store1.png",
                name: "前卫美发金山旗舰店",
                sellnum: "188",
                commentnum: "54",
                price: "99",
                distance: "3.1km"
            }
        ],
        selectlist: [{
            title: "品牌",
			options: ["米其林", "米其林", "米其林", "米其林", "米其林", "米其林", "米其林", "米其林","米其林", "米其林",]
        },{
			title:"折扣和服务",
				options: ["包邮", "包邮", "包邮", "包邮", "包邮", "包邮", "包邮", "包邮", "包邮"]
		}]
    },

    /**
     * 生命周期函数--监听页面加载
     */
    onLoad: function(options) {

    },
	selectbtn:function(){
		this.setData({
			slideshow:true
		})
	},
	maskout: function () {
		this.setData({
			slideshow: false
		})
	},
	confirm:function(){
		this.setData({
			slideshow: false
		})
	},
	toptab:function(e){
		this.setData({
			tabindex:e.currentTarget.dataset.index
		})
	},
	intelligent:function(){
		var dropmenushow = this.data.dropmenushow
     this.setData({
		 dropmenushow: !dropmenushow,
		 intelligentshow:true
	 })
	},
	dropmenu:function(){
		this.setData({
			dropmenushow:false
		})
	},
    /**
     * 生命周期函数--监听页面初次渲染完成
     */
    onReady: function() {

    },

    /**
     * 生命周期函数--监听页面显示
     */
    onShow: function() {

    },

    /**
     * 生命周期函数--监听页面隐藏
     */
    onHide: function() {

    },

    /**
     * 生命周期函数--监听页面卸载
     */
    onUnload: function() {

    },

    /**
     * 页面相关事件处理函数--监听用户下拉动作
     */
    onPullDownRefresh: function() {

    },

    /**
     * 页面上拉触底事件的处理函数
     */
    onReachBottom: function() {

    },

    /**
     * 用户点击右上角分享
     */
    onShareAppMessage: function() {

    }
})